<admintpl file="header" />


<link href="__TMPL__Public/assets/css/infomation.css" rel="stylesheet" />
</head>
<body>
    <div class="wrap">
        <ul class="nav nav-tabs">
            <li><a href="{:U('ConstructionExamination/index')}">报审报验表管理</a></li>
            <li class="active"><a href="{:U('ConstructionExamination/add')}">新增报审报验</a></li>
            <li class="active"><a href="{:U('ConstructionExamination/edit')}">编辑报审报验</a></li>
        </ul>  
    <section class="tab-pane active fade in" id="access">
        <div class="row">
            <div class="col-xs-12 col-md-12 col-lg-12">
                <div class="panel panel-info">

                    <div class="panel-body">
                        <form method="post" class="form-horizontal " action="{:U('ConstructionExamination/edit_post')}">
                            <div class="row tg-header">
                                <div class="col-md-12 text-center">
                                    <h3>
                                    　　<select style=" height: 40px">
                                            <option>隐蔽工程</option>
                                            <option>检验批质量检验</option>
                                            <option>分项工程质量检验</option>
                                            <option>施工试验室证明</option>　　
                                            <option>其他</option>
                                        </select>报审、报验表</h3>
                                    <hr />
                                </div>

                                <div class="col-md-12">
                                    <p class="tg-to"><label>工程名称:</label><input type="text" class="input-xt input-deptname"  disabled value="{$job_name}" readonly/></p>

                                    <p class="pull-right tg-serialnum"><label>编号:</label><input class="input-xt" name="code" required/></p>
                                </div>
                            </div>

                            <table class="table table-bordered">
                                <tr>
                                    <td style="border-right:none !important;">
                                        
                                            <p>
                                                <label>致：<input type="text" class="input-xt input-deptname"  name="supervisory_department" required/>（项目监理机构）:</label>
                                            </p>
                                            <p class="indent20">
                                                我方已完成<input type="text" class="input-xt" name="position" required/>工作，经自检合格，请予以审查或验收。
                                            </p>
                                            <p></p>
                                            <p class="indent20">
                                                附件
                                                <div class="controls" style="margin-left: 20px">
                                                    <p>
                                                        <input name="" type="checkbox" /> 隐蔽工程质量检验资料
                                                    </p>
                                                    <p>
                                                        <input name="" type="checkbox" /> 检验批质量检验资料
                                                    </p>
                                                    <p>
                                                        <input name="" type="checkbox"/> 分项工程质量检验资料
                                                    </p>
                                                    <p>
                                                        <input name="" type="checkbox"/> 施工试验室证明资料
                                                    </p>
                                                    <p>
                                                        <input name="" type="checkbox"/> 其他
                                                    </p>
                                                    <input type="file" id="upFile" name="upFile" style="display:none" />
                                                </div>
                                            </p>
                                            <div class="signature">
                                                <p>
                                                    施工项目部（盖章）
                                                </p>
                                                <p>
                                                    项目经理或项目技术负责人（签字)
                                                </p>

                                            </div>
                                            <p class="signature-date">
                                                <span>年</span>
                                                <span>月</span>
                                                <span>日</span>
                                            </p>         
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="4">
                                        <label>审查意见：</label>
                                        <textarea style="height:200px; width:100%"></textarea>
                                    <div class="signature">
                                                <p>项目监理机构(盖章)</p>
                                                <p>专业监理工程师(签字)</p>

                                            </div>
                                            <p class="signature-date">
                                                <span>年</span>
                                                <span>月</span>
                                                <span>日</span>
                                            </p>
                                        </div>
                                    </td>
                                </tr> 
                            </table>
                            <p class="text-muted tg-note">
                                <small>注：本表一式二份，项目监理机构、施工单位各一份。</small>
                            </p>
                            <div class="form-actions">
                                <button type="submit" class="btn btn-primary js-ajax-submit">{:L('SAVE')}</button>
                                <a class="btn btn-default" href="javascript:history.back(-1);">{:L('BACK')}</a>
                            </div>
                        </form>                   
                    </div>
                </div>
            </div>
        </div>
    </section>
    <script src="__PUBLIC__/js/common.js"></script>
    <script type="text/javascript" src="__TMPL__Public/assets/js/ajaxfileupload.js"></script>
    <script type="text/javascript">
        $(document).ready(function(e) {
            // 文件选择器change事件
            $("#upFile").on("change", function(){
                UploadFile("{:U('ConstructionExamination/upload')}", "construction_examination");
            });
            $("input:checkbox").click(function() {
                $("#upFile").click();
            }); 
            $(document).on("click", ".delFile", function(){
                if($(this).attr("value") != undefined){
                    delFile("{:U('ConstructionExamination/delFile')}", $(this).attr("value"), $(this))
                } else {
                    $(this).closest("div").remove();
                }
            });
        });
    </script>
</body>
</html>